<h1>Add A New User</h1>

<p><span class="page_error"><? if(isset($page_error)) echo $page_error?></span></p>

<form name="register_form" method="post" action="add">
    <p><span class="error_message"><?=form_error('first_name')?></span>
        <label for="first_name">First Name:</label>
        <input type="text" name="first_name" id="first_name" maxlength="40" value="<?=set_value('first_name')?>"/></p>

    <p><span class="error_message"><?=form_error('last_name')?></span>
        <label for="last_name">Last Name:</label>
        <input type="text" name="last_name" id="last_name" maxlength="40" value="<?=set_value('last_name')?>"/></p>

    <p><span class="error_message"><?=form_error('email')?></span>
        <label for="email">Email:</label>
        <input type="text" name="email" id="email" maxlength="50" value="<?=set_value('email')?>"/></p>

    <p><span class="error_message"><?=form_error('confirm_email')?></span>
        <label for="confirm_email">Confirm Email:</label>
        <input type="text" name="confirm_email" id="confirm_email" maxlength="50"/></p>

    <p><span class="error_message"><?=form_error('password')?></span>
        <label for="password">Password:</label>
        <input type="password" name="password" id="password" /></p>

    <p><span class="error_message"><?=form_error('confirm_password')?></span>
        <label for="confirm_password">Confirm Password:</label>
        <input type="password" name="confirm_password" id="confirm_password"/></p>

	<p><label for="account_group">Account Group:</label>
        <?=form_dropdown('group_id', $groups, 2)?></p>

	<p><label for="activate">Activate this account?</label>
		Yes <input type="radio" name="activate" value="TRUE" /> No <input type="radio" name="activate" value="FALSE" checked /></p>

    <p><input type="submit" value="Register"/></p>
</form>
